package com.wuxiaofan.member.mapper;
import org.apache.ibatis.cursor.Cursor;
import org.springframework.stereotype.Component;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wuxiaofan.member.entity.Member;
import com.wuxiaofan.member.entity.custom.MemberCustom;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;
import java.util.List;
import java.util.Map;

/**
 *会员
 */
@Component
public interface MemberMapper extends BaseMapper<Member> {
    public List<MemberCustom> findByMap(@Param("map") Map paraMap, Page page);

    public List<MemberCustom> findByMap(@Param("map") Map paraMap);

    public MemberCustom findCountByMap(@Param("map") Map paraMap);

    public MemberCustom findGroupByMap(@Param("map") Map paraMap);

    public void updateMapById(@Param("map") Map paraMap);

    Cursor<MemberCustom> queryByUsername(@Param("username") String username);
}
